package processes.createThreadsProcess;

import os.MiniOS;
import os.MiniProcess;
import os.MiniThread;

public class CreateThreadsProcessThread2 extends MiniThread
{

	public CreateThreadsProcessThread2(MiniProcess process, String tid)
	{
		super(process, tid);
		description = "Prints AA to ZZ";
	}

	@Override
	public void passThreadArguments(Object[] arguments)
	{
	}

	@Override
	public void run()
	{
		isExcecutionStopped();
		System.out.println("Inside Run " + tid);
		for (int i = 'A'; i <= 'Z'; i++)
		{
			for (int j = 'A'; j <= 'Z'; j++)
			{
				System.out.println(i + " " + j);
				MiniOS.getInstance().outputRequest(this,
						(char) i + "" + (char) j);
				isExcecutionStopped();
			}
		}
		MiniOS.getInstance().threadTerminated(getProcessId(), getTid());

	}

}
